import { request } from "@/utils/request"

enum Api{
	LIST_HOSPITAL='/hospital/listHospital',
	QUERY_HOSPITAL = "/hospital/query"
}


export function listHospital(data?:any){
	return request({url:Api.LIST_HOSPITAL,data,method:"POST"})
}

export function queryHospital(id:string|number){
	return request({url:`${Api.QUERY_HOSPITAL}?id=${id}`})
}